package com.million.service.impl;

import com.million.base.annotations.Eviction;
import com.million.service.EvictionStrategy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @Author miki
 * @Date 2022/1/22 0:19
 * @Explain 最上静香
 */
@Eviction(value = "SHIZUKA")
@Service
public class ShizukaImpl implements EvictionStrategy {

    private static final Logger logger = LoggerFactory.getLogger(ShizukaImpl.class);

    @Override
    public Map<String, Object> evictionCache() {
        logger.info("Mogami Shizuka,最上静香");
        Map<String, Object> map = new LinkedHashMap<>();
        map.put("name", "最上静香");
        map.put("age", "14");
        map.put("birthday", "9月14日(处女座)");
        map.put("cv", "田所梓");
        map.put("camp", "Angel");
        System.out.println("偶像情报：" + map);
        return map;
    }
}
